class PSKismetGFXTutorial extends SequenceAction;

var PSPlayerController pc;

event Activated()
{
	pc = none;

	if (Targets.length == 0)
	{
		`Log("WARNING: No Target");
	}
	else
	{
		if(Targets[0].IsA('PSPlayerController'))
		{
			pc = PSPlayerController(Targets[0]);
		}
		else if(Targets[0].IsA('PSPawnDidrik'))
		{
			pc = PSPlayerController(PSPawnDidrik(Targets[0]).Controller);
		}

		if(pc==none) return;
		

		// Action
		if(InputLinks[1].bHasImpulse)
		{
			// Show 1. Move-Look
			pc.PSShowTutorial(1);
		
		}
		else if(InputLinks[2].bHasImpulse)
		{
			//Show 2. Grouch-Mele
			pc.PSShowTutorial(2);
		}
		else if(InputLinks[3].bHasImpulse)
		{
			//Show 3. Combat
			pc.PSShowTutorial(3);
		}
		else if(InputLinks[4].bHasImpulse)
		{
			//Show 4. Cover
			pc.PSShowTutorial(4);
		}
		else if(InputLinks[5].bHasImpulse)
		{
			//Show 5. Invisibility
			pc.PSShowTutorial(5);
		}
		else if(InputLinks[6].bHasImpulse)
		{
			//Show 6. Grab-Drop-Trhow
			pc.PSShowTutorial(6);
		}
		else if(InputLinks[7].bHasImpulse)
		{
			//Show Switch Weapon
			pc.PSShowTutorial(7);
		}
		else
		{
			// hide
			pc.PSShowTutorial(0);
		}
	}
}

DefaultProperties
{
	ObjName="PSKismetGFXTutorial"
	ObjCategory="PS Actions"
	
	InputLInks(0)=(LinkDesc="Hide")
	InputLinks(1)=(LinkDesc="Show 1. Move-Look")
	InputLinks(2)=(LinkDesc="Show 2. Crouch-Mele")
	InputLinks(3)=(LinkDesc="Show 3. Combat")
	InputLinks(4)=(LinkDesc="Show 4. Cover")
	InputLinks(5)=(LinkDesc="Show 5. Invisibility")
	InputLinks(6)=(LinkDesc="Show 6. Grab-Drop-Trhow")
	InputLinks(7)=(LinkDesc="Show 7. Switch Weapon")
}
